package day07_14.day08;

import java.util.Scanner;

public class Main02 {
    public static void main(String[] args) {
        Scanner scn = new Scanner(System.in);
        while (scn.hasNext()){
            int A = scn.nextInt();
            int B = scn.nextInt();
            System.out.println(A * B / gbc(A , B));


        }
    }
    public static int gbc(int a , int b){
        return a % b == 0 ? b : gbc(b , a % b);
    }
}
